package com.happiness.base.utils.exception;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;

/**
 * 所有自定义异常处理类
 * */
@Getter
public class UnifiedException extends RuntimeException{
    @ApiModelProperty("异常状态")
    private int code;
    @ApiModelProperty("异常提示信息")
    private String message;
    public UnifiedException(){

    }
    public UnifiedException(int code){
        this.code = code;
    }
    public UnifiedException(int code,String message){
        this.message = message;
        this.code = code;
    }
}
